package com.ruoyi.common.core.pojo.result;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import java.util.Collection;

@Data
@Builder
@Schema(description = "分页数据")
public class Pages<T>{
    /*由于泛型的使用 这里不继承PageInfo 直接将参数copy过来*/

    @Schema(description ="页码")
    protected Long page;

    @Schema(description ="每页显示数量")
    protected Long size;

    @Schema(description ="总页数")
    protected Long pages;

    @Schema(description ="总条数")
    protected Long total;

    @Schema(description ="响应数据")
    private Collection<T> data;
}
